
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.form-header h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.form-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.form-card-header {
    background: linear-gradient(to right, #4a69bd, #1e3c72);
    color: white;
    padding: 25px 40px;
    display: flex;
    align-items: center;
}

.form-card-header i {
    font-size: 2.5rem;
    margin-right: 20px;
}

.form-card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.form-body {
    padding: 40px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    flex: 1 0 300px;
    margin: 0 15px 30px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3436;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s;
    background: #f8f9ff;
}

.form-control:focus {
    border-color: #4a69bd;
    box-shadow: 0 0 0 3px rgba(74, 105, 189, 0.2);
    outline: none;
    background: white;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a69bd;
    pointer-events: none;
}

select.form-control {
    appearance: none;
    padding-right: 50px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
}

.radio-item input, .checkbox-item input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #4a69bd;
}

.radio-item label, .checkbox-item label {
    font-size: 1.1rem;
    color: #555;
}

.form-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.submit-btn {
    background: linear-gradient(to right, #4a69bd, #1e3c72);
    width: 300px;
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 5px 20px rgba(74, 105, 189, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(74, 105, 189, 0.7);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(74, 105, 189, 0.7);
}

.submit-btn i {
    margin-right: 12px;
    font-size: 1.4rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-header h1 {
        font-size: 2.2rem;
    }

    .form-body {
        padding: 30px 20px;
    }

    .form-card-header {
        padding: 20px;
    }

    .form-group {
        flex: 1 0 100%;
    }

    .submit-btn {
        width: 100%;
        padding: 16px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    animation: fadeIn 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.form-group:nth-child(5) {
    animation-delay: 0.5s;
}

.form-group:nth-child(6) {
    animation-delay: 0.6s;
}

.form-group:nth-child(7) {
    animation-delay: 0.7s;
}

.submit-btn {
    animation: fadeIn 0.8s ease-out;
    animation-delay: 0.8s;
}
